<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" href="{:config('web.cdn')}/favicon.ico">
    <title>
        {$user.nickname}的个人主页_{:config('web.web_title')}
    </title>
    <meta name="keywords" content="{$user.nickname}个人主页">
    <meta name="description" content="{$user.nickname}-{:config('web.web_title')}个人主页">
    <link rel="stylesheet" href="{:config('web.cdn')}/static/u/css/layui.css" media="all">
    <link rel="stylesheet" href="{:config('web.cdn')}/static/u/css/admin.css" media="all">
    <link rel="stylesheet" href="{:config('web.cdn')}/static/u/css/template.css" media="all">
    <link rel="stylesheet" href="{:config('web.cdn')}/static/css/style.css" media="all">
    <style>
        img{
            max-width: inherit;
        }
    </style>
</head>
<body>
<div class="layui-fluid Knav">
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md9">
                <a class="logo layui-col-md2 layui-col-xs6" href="/" title="米醋儿">
                    {if config('web.logoIndex')}
                    <img src="{:config('web.logoIndex')}" alt="">
                    {else /}
                    <img src="{:config('web.cdn')}/static/images/logo.png" alt="">
                    {/if}
                </a>

            </div>
        </div>
    </div>
</div>

<div class="layui-fluid layadmin-homepage-fluid layui-container">

    <div class="layui-row layui-col-space2">
        <div class="layui-col-md3">
            <div class="layadmin-homepage-panel layadmin-homepage-shadow">
                <div class="layui-card text-center">
                    <div class="layui-card-body">
                        <div class="layadmin-homepage-pad-ver">
                            {if $user.headimgurl}
                            <img class="layadmin-homepage-pad-img" src="{$user.headimgurl}" width="96" height="96">
                            {else /}
                            <img class="layadmin-homepage-pad-img" src="{:config('web.cdn')}/static/u/picture/portrait.png" width="96" height="96">
                            {/if}
                        </div>
                        <h4 class="layadmin-homepage-font">{$user.nickname}</h4>
                        <p class="layadmin-homepage-min-font">{:config('web.web_title')}会员</p>
                        <p class="layadmin-homepage-min-font">
                            发文{$user.article_count}
                        </p>
                        <p class="layadmin-homepage-min-font">
                            <button class="layui-btn layui-btn-sm layui-btn-primary">总阅读量:{$user.hit_count}</button>
                            <br>
                            <br>
                            <button class="layui-btn layui-btn-sm layui-btn-danger">粉丝：{$user.fans_count}</button>
                            <button class="layui-btn layui-btn-sm layui-btn-normal">关注：{$user.guanzhu_count}</button>
                        </p>
                    </div>
                </div>
                <p class="layadmin-homepage-about">
                    关于我:{$user.intro|default="这家伙很懒，什么也没留下"}
                </p>
                <ul class="layadmin-homepage-list-group">
                    <li class="list-group-item">
                        <i class="layui-icon layui-icon-location"></i>
                        {if $user.address}
                        {$user.address}
                        {else /}
                         保密
                        {/if}
                    </li>
                    <li class="list-group-item">
                        <a href="javascript:;" class="color"><i class="layui-icon layui-icon-snowflake"></i>
                            <span style="word-wrap:break-word;">{:request()->domain()}{:url('u/index',['id'=>$user.id])}</a>
                    </li>
                </ul>
                <div class="layadmin-homepage-pad-hor">
                    <mdall>
                        {$user.intro|default="这家伙很懒，什么也没留下"}
                    </mdall>
                </div>
                <p class="layadmin-homepage-about">
                    技能
                </p>
                <ul class="layadmin-homepage-list-inline">
                    <?php $tags = explode(" ",$user['tags']);?>
                    {foreach $tags as $v}
                    <a href="javascript:;" class="layui-btn layui-btn-primary">{$v}</a>
                    {/foreach}
                </ul>
            </div>
        </div>
        <div class="layui-col-md9">
            <div class="layui-fluid layadmin-homepage-content">
                {include file="public/article_list" /}

                {$list|raw}
            </div>
        </div>
    </div>
</div>


<script src="{:config('web.cdn')}/static/u/js/layui.js"></script>
<script>
    layui.config({
        base: '../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index']);
</script>
</body>
</html>